package org.java.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/operation")
public class OperationServlet extends BaseServlet {


    protected void addShopping(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        String goodsId = request.getParameter("goodsId");
        String goodsPic = request.getParameter("goodsPic");
        String goodsNewPrice = request.getParameter("goodsNewPrice");
        String goodsOldPrice = request.getParameter("goodsOldPrice");
        String goodsRep = request.getParameter("goodsRep");
        String goodsAuthor = request.getParameter("goodsAuthor");
        String goodsTime = request.getParameter("goodsTime");
        String count = request.getParameter("count");
        String goodsSize = request.getParameter("goodsSize");
        request.setAttribute("goodsId",goodsId);
        request.setAttribute("goodsPic",goodsPic);
        request.setAttribute("goodsNewPrice",goodsNewPrice);
        request.setAttribute("goodsOldPrice",goodsOldPrice);
        request.setAttribute("goodsRep",goodsRep);
        request.setAttribute("goodsAuthor",goodsAuthor);
        request.setAttribute("goodsTime",goodsTime);
        request.setAttribute("count",count);
        request.setAttribute("goodsSize",goodsSize);
        request.getRequestDispatcher("pro_detail.jsp").forward(request,response);
    }

}
